For example , a class representing a calendar date might have three integer fields : one for the month , one for the day , and one for the year 例如,表示日歷日期的類可能有三個(gè)整數(shù)字段:一個(gè)表示月份,一個(gè)表示日期,還有一個(gè)表示年份。
In the single thread demonstration , you cannot update either of the integer fields while mtrecalc is recalculating , but in the worker thread demonstration you can 在單線程演示中,當(dāng)mtrecalc正在重新計(jì)算時(shí)無法更新任何一個(gè)整數(shù)字段,而在輔助線程演示中則可以。